const systemInfo = function () {
  let systemInformation = uni.getSystemInfoSync(); // 设备系统信息
  let scaleFactor = 750 / systemInformation.windowWidth; // 机型适配比例系数
  let windowHeight = systemInformation.windowHeight * scaleFactor; // 当前机型-屏幕高度
  let windowWidth = systemInformation.windowWidth * scaleFactor; // 当前机型-屏幕宽度
  let statusBarHeight = systemInformation.statusBarHeight * scaleFactor; // 状态栏高度
  let platform = systemInformation.platform; // 运行平台
  const uniPlatform = systemInformation.uniPlatform; // 运行环境
  
  return {
    scaleFactor,
    windowHeight,
    windowWidth,
    statusBarHeight,
    platform,
    uniPlatform
  };
};

export { systemInfo };
